#include "problems/5.h"
#include "gtest/gtest.h"

TEST(TestProblemSolutions, TestProblem5)
{
    problem_5::Solution s;
    ASSERT_EQ(s.DP("babad"), "bab");
    ASSERT_EQ(s.DP("cbbd"), "bb");
    ASSERT_EQ(s.longestPalindrome("babad"), "bab");
    ASSERT_EQ(s.longestPalindrome("cbbd"), "bb");
}